//
//  BookDetailViewController.h
//  ChangJiangPress
//
//  Created by 泉 汉水 on 11-12-1.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>
#import "DBUtil.h"
#import "CommonDetailWebServices.h"


@interface BookDetailViewController : UIViewController
<CommonDetailWebServicesProtocol, SKProductsRequestDelegate> {
    NSString *bookId;
    BookItem *bookItem;
    
    UIImageView *bookFaceView;
    UIActivityIndicatorView *faceWaitingView;
    UILabel *bookTitleAuthor;
    UILabel *bookCategory;
    UILabel *bookPressTime;
    UILabel *bookPress;
    UILabel *bookWords;
    UILabel *bookLanguage;
    UILabel *bookFocusLabel;
    UIImageView *starView;
    
    UIButton *buyButton;
    
    UIButton *currentButton;
    UITextView *currentContent;
    UIActivityIndicatorView *waitingView;
    
}
@property(retain, nonatomic) NSString *bookId;
@property(retain, nonatomic) IBOutlet UIImageView *bookFaceView;
@property(retain, nonatomic) IBOutlet UIActivityIndicatorView *faceWaitingView;
@property(retain, nonatomic) IBOutlet UILabel *bookTitleAuthor;
@property(retain, nonatomic) IBOutlet UILabel *bookCategory;
@property(retain, nonatomic) IBOutlet UILabel *bookPressTime;
@property(retain, nonatomic) IBOutlet UILabel *bookPress;
@property(retain, nonatomic) IBOutlet UILabel *bookWords;
@property(retain, nonatomic) IBOutlet UILabel *bookLanguage;
@property(retain, nonatomic) IBOutlet UILabel *bookFocusLabel;
@property(retain, nonatomic) IBOutlet UIImageView *starView;

@property(retain, nonatomic) IBOutlet UIButton *buyButton;

@property(retain, nonatomic) IBOutlet UIButton *currentButton;
@property(retain, nonatomic) IBOutlet UITextView *currentContent;
@property(retain, nonatomic) IBOutlet UIActivityIndicatorView *waitingView;

-(IBAction)hiddenDetail:(id)sender;
-(IBAction)changeContent:(id)sender;
-(IBAction)favorClick:(id)sender;
-(IBAction)downClick:(id)sender;
-(IBAction)buyButtonClick:(id)sender;
@end
